home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / mmdf.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.8 KB  |  84 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=mmdf.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: mmdf.SH,v 3.1 87/01/06 08:16:02 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for mmdf tables + domains
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # directory with nrs file in
  19. directory $datadir
  20.  
  21. # enable tracing
  22. verbose 1
  23.  
  24. # output format
  25. output short mmdf
  26.  
  27. # only want connections on JANET in the MAIL-NIFTP context
  28. context MAIL janet
  29.  
  30. # Want the domain gateway tables
  31. domains
  32.  
  33. # filter this file through macro expander
  34. comment hdr.file
  35.  
  36. # now the domains & files - order is critical.
  37. #    the file    the short dmn    the long dmn
  38. # AUTOMATIC local tailoring
  39. #   end of  local tailoring
  40. # The academic comunity domain
  41. filedmn ac.dmn        uk.ac.
  42. # the comercial doamin
  43. filedmn co.dmn        uk.co.
  44. # the MOD doamin
  45. filedmn mod.dmn        uk.mod.
  46. # DESY (Hamburg Germany)
  47. filedmn desy.dmn    desy.
  48. # CERN sites
  49. filedmn cern.dmn    cern.
  50.  
  51. # the gateway info .... with pseudo-match
  52. filedmn    top.dmn        -top.dmn-
  53.  
  54. # the rest -- should be empty except for ALVEY
  55. # (the pain in everyone's side)
  56. filedmn misc.dmn
  57.  
  58. # Two channels pss & janet - pss will cost you ...
  59. filechan    pss-chan    pss
  60. filechan    janet-chan    janet
  61. !GROK!THIS!
  62. then
  63.     : OK
  64. else
  65.     echo "    " Failed to create $outputfile.$$
  66.     exit 1
  67. fi
  68. if [ -r tailor ]
  69. then ed - $outputfile.$$ << EOF
  70.     /AUTOMATIC local tailoring/r tailor
  71.     w
  72. EOF
  73. fi
  74. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  75. then
  76.     rm -f $outputfile.$$
  77.     echo "    " $outputfile not affected
  78. elif mv $outputfile.$$ $outputfile
  79. then
  80.     echo "    " $outputfile updated
  81. else
  82.     echo "+++    " $outputfile left in $outputfile.$$
  83. fi
  84.